package com.congee02;

import com.congee02.config.AppConfig;
import com.congee02.service.LoginService;
import com.congee02.service.PrototypeServiceImpl;
import com.congee02.service.UserService;
import com.congee02.service.impl.UserServiceImpl;
import com.congee02.spring.context.CustomApplicationContext;

/**
 * @author congee(congee02 @ 163.com)
 * @date 1/27/2023 9:17 AM
 */
public class Test {

    public static void main(String[] args) {
        CustomApplicationContext context =
                new CustomApplicationContext(AppConfig.class);

        LoginService loginService = (LoginService) context.getBean("loginServiceImpl");
        System.out.println(loginService);
        System.out.println(context.getBean(LoginService.class));

    }

}
